﻿@{
    ViewBag.Title = "编辑模块";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model ModularDto           
<div class="row">
    @using (Html.BeginHBootstrap_Box("编辑模块"))
    {
        using (Html.BeginForm("PostEditModular", "Menu", FormMethod.Post, new { id = "postForm", @class = "form-horizontal", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
        {
        @Html.HiddenFor(m => m.Id)   
        <div class="form-group">
            <label class="col-sm-3 control-label">
                <span class="text-danger">*</span>模块名称：</label>
            <div class="col-sm-8">
                @Html.TextBoxFor(m => m.ModularName, new { @class = "form-control" })
                @Html.ValidationMessageFor(m => m.ModularName)
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                图标：</label>
            <div class="col-sm-8">
                @Html.TextBoxFor(m => m.Icon, new { @class = "form-control" })
                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>常用图标fa【fa fa-folder-o(文件夹),fa-search(查询),fa-plus(新增),fa-edit(编辑),fa-cut(删除),fa-cloud-download(下载),fa-cloud-upload(上传),fa-wrench(设置),fa-check(审核)】</span>
                @Html.ValidationMessageFor(m => m.Icon)
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                <span class="text-danger">*</span>排序：</label>
            <div class="col-sm-8">
                @Html.TextBoxFor(m => m.Sort, new { @class = "form-control" })
                @Html.ValidationMessageFor(m => m.Sort)
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-3">
                <button class="btn btn-primary" type="submit">
                    提交</button>
                <a class="btn btn-default" type="button" href="@Url.Action("Index", "Menu")" >取消</a>
            </div>
        </div>
        }
    }
</div>
